<?php

/**
 * Template for generating div
 * with one comment
 * 
 */
class tplComment extends \StudyBuddy\Template\Template {

    protected static $vars = array(
        '_id' => '', //1
        'b' => '', //2
        'ts' => '', //3
        'username' => '', //4
        'i_uid' => '', //5
        't' => '', //6
        'i_prnt' => 0, //7
        'b_owner' => '', //8
        'edit_delete' => '', //9
        'i_likes' => '', // 10
        'e' => '', //11
        'owner_id' => '0', //12
        'resource_id' => '0', //13
        's_inreply' => '', //14
        'reply' => 'Reply', //15
        'reply_t' => 'Reply to this comment' //16
    );
    protected static $tpl = '
	<div class="fl commentbox reply-%7$s" id="comment-%1$s">
	    <a name="c%1$s"></a>
		<div class="com_1 fl cb1">
			<div class="fl">
			%14$s
			<div class="fl com_b">%2$s</div>
			</div>
		</div>
		<div class="com_i fl cb1" style="margin-top:5px;">
                        <div class="com_auth usr usr_%5$s fl"><a href="/users/%5$s/" class="iu usr-%5$s commentor%8$s">%4$s</a></div>	
                        <div title="%3$s" class="com_ts ts fl">%6$s</div>
                        <div class="com_ts ts fl">
                            <span class="comflag ajax" id="cflag_%1$s" title="Report this comment">| Report abuse</span>
                        </div>
                        <div class="com_tools controls uid-%5$s" id="res_%1$s" style="margin-top:0px;">				
                            %11$s
                            %9$s   
			</div>
                        <div class="fr mt10 com_reply"></div>
		</div>
	</div>';

}
